package com.spzx.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spzx.product.api.domain.SkuQuery;
import com.spzx.product.domain.ProductSku;

import java.util.List;

/**
 * @ClassName ProductSkuMapper
 * @Author 波
 * @Date 2024/7/30 16:13
 */
public interface ProductSkuMapper extends BaseMapper<ProductSku> {
    /**
     * 获取销量最好的sku
     * @return List<ProductSku>
     */
    List<ProductSku> getTopSale();
    /**
     * 查询商品列表
     * @param skuQuery 查询的条件
     * @return  List<ProductSku>
     */
    List<ProductSku> getProductSkuList(SkuQuery skuQuery);
}
